

import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class TestVille.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class TestVille
{

    @Test
    public void testPositiveAndNegativeNumber()
    {
        Ville ville1 = new Ville();
        ville1.addHabitants(10);
        assertEquals(10, ville1.getNbHabitants());
        ville1.addHabitants(-20);
        assertEquals(10, ville1.getNbHabitants());
    }
}




